cmake_minimum_required(VERSION 3.0.0)
project(cam_trigger_true VERSION 0.1.0)

include(CTest)
enable_testing()
find_package(OpenCV REQUIRED)
# 开启多线程
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread")

include_directories(
    /opt/MVS/include
    ./include
    ${OpenCV_INCLUDE_DIRS}
    )
link_directories(
    /opt/MVS/lib/64
    /opt/MVS/lib/32
    /usr/local/lib
    #   ${TORCH_LIBRARY_DIRS}
    )
aux_source_directory(./src ALL_SRCS)
add_executable(cam_drive_true main.cpp ${ALL_SRCS})

target_link_libraries(cam_drive_true
    ${OpenCV_LIBS}
    MvCameraControl
    libMvCameraControl.so
    libglog.so
    )
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
